package com.enums;

// 可以从三个维度
public class ConsoleFontStyleEnum {
    //    字体颜色  shallow 浅色  Bright 亮色   deep 深色
    public enum Color {
        // 白色的话默认都是白色。 很多数字是白色，随便选了一个
        WHITE("白色", 25),
        BRIGHT_WHITE("亮白", 30),
        RED("红色", 31),
        GREEN("绿色", 32),
        YELLOW("黄色", 33),
        BLUE("蓝色", 34),
        PURPLE_MAGENTA("紫色(洋红)", 35),
        CYAN("青色", 36),
        SHALLOW_GRAY("浅灰色", 37),
        DEEP_GRAY("深灰色", 90),
        BRIGHT_RED("亮红色", 91),
        BRIGHT_GREEN("亮绿色", 92),
        BRIGHT_YELLOW("亮黄色", 93),
        BRIGHT_BLUE("亮蓝色", 94),
        BRIGHT_PURPLE_BRILLIANT_CARMINE("亮紫色(亮洋红)", 95),
        BRIGHT_CYAN("亮青色", 96),
        DRAK("黑色", 97);

        private final String name;
        private final Integer value;

        Color(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //    背景颜色 shallow 浅色  Bright 亮色   deep 深色
    public enum BackGroundColor {
        WHITE("白色", 40),
        RED("红色", 41),
        GREEN("绿色", 42),
        YELLOW("黄色", 43),
        BLUE("蓝色", 44),
        PURPLE("紫色", 45),
        CYAN("青色", 46),
        GRAY("灰色", 47),
        BRIGHT_GRAY("深灰色", 100),
        BRIGHT_RED("亮红色", 101),
        BRIGHT_GREEN("亮绿色", 102),
        BRIGHT_YELLOW("亮黄色", 103),
        DARK_BLUE("暗蓝色", 104),
        BRIGHT_PINK("亮粉色", 105),
        BRIGHT_BLUE("亮蓝色", 106),
        BRIGHT_DRAK("亮黑色", 107);
        private final String name;
        private final Integer value;

        BackGroundColor(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    //    样式
    public enum Pattern {
        BOLD("加粗", 1),
        NORMAL("正常", 2),
        ITALICS("斜体", 3),
        UNDERLINE("下滑线", 4),
        UNDERLINE_2("下划线", 21),
        OVERLAY_FRAME("覆盖框", 7),
        OUTER_FRAME1("外框", 51),
        OUTER_FRAME2("覆盖框", 52);
        private final String name;
        private final Integer value;

        Pattern(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public Integer getValue() {
            return value;
        }
    }

    //    其他样式
    public enum Other {
        Default("默认的", 200);
        private final String name;
        private final Integer value;

        Other(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public Integer getValue() {
            return value;
        }
    }
}